<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <WasmCopyAppZipToHelixTestDir Condition="'$(ArchiveTests)' == 'true'">true</WasmCopyAppZipToHelixTestDir>
    <WasmMainJSPath>main.mjs</WasmMainJSPath>
    <WasmGenerateRunV8Script>true</WasmGenerateRunV8Script>

    <GenerateRunScriptForSample Condition="'$(ArchiveTests)' == 'true'">true</GenerateRunScriptForSample>
    <ExpectedExitCode>2</ExpectedExitCode>
    <RunScriptCommand>$(ExecXHarnessCmd) wasm test --app=. --engine=NodeJS --engine-arg=--stack-trace-limit=1000 --js-file=main.mjs --output-directory=$(XHarnessOutput) --expected-exit-code $(ExpectedExitCode)</RunScriptCommand>
  </PropertyGroup>

  <ItemGroup>
    <WasmExtraFilesToDeploy Include="package.json" />
  </ItemGroup>

  <Target Name="RunSample" DependsOnTargets="RunSampleWithNode" />
</Project>
